Adding a second IP address onto eth0 causes the vif-* hotplug scripts to
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 22 Feb 2006 20:52:30 +0000 (21:52 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 22 Feb 2006 20:52:30 +0000 (21:52 +0100)
commitd7f4473faec4c27b759e29d01813395ddfe4ed60
tree1c5269ef63bde3b0d7b6b4d55adc78afa765c761
parenta58703d1edc76c75c3ae7c4dc4d3400f1bcb1e2d
Adding a second IP address onto eth0 causes the vif-* hotplug scripts to
fail: ip_of() is returning a LIST of IP addresses, one per line.
The vif-scripts attempt to use the list where single addresses ought to
be, with predictable results. This patch changes ip_of() to return
the first address in the list, which seems to be the first one configured.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
tools/examples/vif-common.sh